﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="PersonInfo.aspx.cs" Inherits="admin_PersonInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style2
        {
            color: #FFFFFF;
            text-align: left;
        }
        .style3
        {
            color: #FFFF00;
            text-align: left;
        }
        .style4
        {
            color: #FFFFFF;
            width: 226px;
        }
        .style5
        {
            width: 226px;
        }
        .style6
        {
            height: 26px;
            width: 226px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <span style="font-size: 16pt">
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <span style="color: #0000ff">
            <asp:DataList ID="DataList1" runat="server">
                <ItemTemplate>
                <fieldset>
                    <legend class="style3"><strong>Account &nbsp;Information</strong></legend>
                    <table width="820px" border="0" style="color: #0000ff">
                        <tr>
                            <td style="width: 227px; height: 21px; text-align: left">
                                <span style="color: blue; font-size: 14pt;"></span>
                            </td>
                            <td style="height: 21px; text-align: right;">
                                &nbsp;<asp:LinkButton ID="LinkButton1" runat="server" 
                                    OnClick="LinkButton1_Click" Font-Size="14pt" ForeColor="Yellow">Change password</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px" class="style1">
                                <div align="right">
                                    <span style="font-size: 14pt; " class="style1">Username: </span>
                                </div>
                            </td>
                            <td style="text-align: left">
                                &nbsp;<asp:Label ID="lblUsername" runat="server" Font-Italic="True"  
                                    Text='<%# Eval("username") %>' Font-Size="14pt" ForeColor="Maroon"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px" class="style1">
                                <div align="right">
                                    <span style="font-size: 14pt"><span class="style1">Passw<span>ord:</span></span></span></div>
                            </td>
                            <td style="color: #0000ff; text-align: left">
                                <span style="color: black">&nbsp;</span><span class="style1">******************</span></td>
                        </tr>
                    </table>
                    </fieldset>
                    <br />
                    <fieldset>
                    <legend class="style3"><strong>Person Information</strong></legend>
                    <table width="820px" border="0" style="color: #0000ff">   
                        <tr>
                            <td style="width: 227px; text-align: left">
                                <span style="color: blue; font-size: 14pt;"></span></td>
                            <td style="text-align: right">
                                <span style="color: blue">
                                <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click" 
                                    Font-Bold="False" Font-Size="14pt" ForeColor="Yellow">Edit</asp:LinkButton>
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px; " class="style2">
                                <span style="font-size: 14pt; " class="style1">Email:</span></td>
                            <td style="text-align: left">
            &nbsp;<asp:Label ID="lblEmail" runat="server" ForeColor="White" Font-Size="14pt" 
                                    Text='<%# Eval("email") %>' CssClass="style1"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px" class="style1">
                                <div align="right">
                                    <span style="font-size: 14pt; " class="style1">Full Name: </span>
                                </div>
                            </td>
                            <td style="text-align: left">
                                &nbsp;<asp:Label ID="lblFullName" runat="server" Font-Size="14pt" 
                                    ForeColor="White" Text='<%# Eval("adminName") %>' CssClass="style1"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px" class="style1">
                                <div align="right">
                                    <span style="font-size: 14pt; " class="style1">Phone:</span></div>
                            </td>
                            <td style="text-align: left">
                                &nbsp;<asp:Label ID="lblPhone" runat="server" Font-Size="14pt" 
                                    ForeColor="White" Text='<%# Eval("tel") %>' CssClass="style1"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            </span>
            <br />
        </asp:View>
        <asp:View ID="View2" runat="server">
            <fieldset>
                <legend class="style3"><strong>Change password</strong></legend>
                <table border="0" width="800px">
                    <tr>
                        <td class="style4">
                            <div align="right">
                                <span style="font-size: 14pt">Old password: </span>
                            </div>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtOldPass" runat="server" TextMode="Password" Width="205px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOldPass"
                                    ErrorMessage="Old password is required!" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                        </td>
                        <td style="text-align: left">
                            <asp:Label ID="lblMessage" runat="server" Font-Bold="False" Font-Size="14pt" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr style="color: #000000">
                        <td class="style4">
                            <div align="right">
                                <span style="font-size: 14pt">New password: </span>
                            </div>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtNewPass" runat="server" TextMode="Password" Width="205px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPass"
                                    ErrorMessage="New password is required!" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr style="color: #000000">
                        <td class="style4">
                            <div align="right">
                                <span style="font-size: 14pt">Repeat password: </span>
                            </div>
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtReNewPass" runat="server" TextMode="Password" Width="205px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtReNewPass"
                                    ErrorMessage="Repeat password is required!" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPass"
                                    ControlToValidate="txtReNewPass" 
                                ErrorMessage="Repeat password no match!" Style="left: -29px;
                                    position: relative; top: 0px" ForeColor="Red">(*)</asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                        </td>
                        <td style="text-align: left">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            <div align="right">
                            </div>
                        </td>
                        <td style="height: 26px; text-align: left">
                            <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="Change" Width="77px" />
                                &nbsp;&nbsp;
                                <asp:Button ID="btnCancel" runat="server" CausesValidation="False" OnClick="btnCancel_Click"
                                    Text="Back" Width="75px" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:View>
            &nbsp;
            <asp:View ID="View3" runat="server">
                <fieldset>
                    <legend class="style3"><strong>Update person&#39;s info</strong></legend>
                    <table width="800px" border="0" style="color: #0000ff">
                        <tr>
                            <td style="width: 227px; " class="style2">
                                <span class="style1">Email:</span></td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtEmail" runat="server" Width="235px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="Email is required!" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="Invalid email!" 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                    ForeColor="Red">(*)</asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px" class="style1">
                                <div align="right">
                                    <span style="font-size: 14pt; " class="style1">Full Name: </span>
                                </div>
                            </td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtAdminName" runat="server" Width="235px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtAdminName"
                                    ErrorMessage="Full name is required!" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px" class="style1">
                                <div align="right">
                                    <span style="font-size: 14pt; " class="style1">Phone:</span></div>
                            </td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtTel" runat="server" Width="235px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtTel"
                                    ErrorMessage="Invalid Phone!" ValidationExpression="[\d \.\-]*" 
                                    ForeColor="Red">(*)</asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px">
                            </td>
                            <td style="text-align: left">
                                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ForeColor="Red" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 227px">
                            </td>
                            <td style="text-align: left">
                                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="OK!" Width="75px" />
                                &nbsp;
                                <asp:Button ID="Button2" runat="server" CausesValidation="False" OnClick="Button2_Click"
                                    Text="Back" Width="77px" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
        </asp:View>
    </asp:MultiView>
    </span>
</asp:Content>

